package com.h2cloud.Test2;

import org.springframework.util.StringUtils;

import java.util.Arrays;

/**
 * @Package: com.h2cloud.Test2
 * @ClassName: testString
 * @Author: h2cloud
 * @CreateTime: 2023/12/3 11:55 下午
 * @Description:
 */
public class testString {
	public static void main(String[] args) {
		String CONFIG_LOCATION_DELIMITERS = ",; \t\n";
		String[] strings = StringUtils.tokenizeToStringArray("", CONFIG_LOCATION_DELIMITERS);
		System.out.println("strings = " + Arrays.toString(strings));

		System.out.println("testString.class.toString() = " + testString.class.toString());

		B b = new B();
		b.scan();  //我的输出结果是什么？
	}
}

class A {
	public void scan() {
		doScan();
	}

	protected void doScan() {
		System.out.println("A.doScan");
	}
}

class B extends A {
	@Override
	protected void doScan() {
		System.out.println("B.doScan");
	}
}
